//************************************************ 
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_client_visit.js中编写
//************************************************ 
export default function() {
	return {
		editFormFields: {"Client":"","Client_flag":"","Visit_way":"","Visit_time":"","Client_man":"","Client_tel":"","Position":"","Visit_num":"","Image":"","Visit_content":""},
		editFormOptions: [{"key":"审核通过客户","data":[],"title":"客户","required":true,"field":"Client","type":"select"},
                               {"key":"客户标志","required":true,"data":[],"title":"客户标志","field":"Client_flag","type":"select"},
                               {"key":"拜访方式","data":[],"title":"拜访方式","required":true,"field":"Visit_way","type":"select"},
                               {"title":"拜访时间","required":true,"field":"Visit_time","type":"datetime"},
                               {"title":"联系人","required":true,"field":"Client_man","type":"text"},
                               {"title":"联系电话","required":true,"field":"Client_tel","type":"phone"},
                               {"title":"职位","required":true,"field":"Position","type":"text"},
                               {"title":"拜访次数","required":true,"field":"Visit_num","type":"number"},
                               {"title":"拜访内容","required":true,"field":"Visit_content","type":"textarea"},
                               {"title":"图片","field":"Image","type":"img"}],
		searchFormFields: {"Creator":"","CreateDate":"","Client":"","Client_flag":"","Client_man":"","Client_tel":"","Position":"","Visit_num":"","Visit_way":"","Visit_time":"","Visit_content":""},
		searchFormOptions: [{"title":"创建时间","field":"CreateDate","type":"datetime"},{"key":"客户标志","data":[],"title":"客户标志","field":"Client_flag","type":"select"},{"title":"拜访内容","field":"Visit_content"},{"type":"group"},{"key":"审核通过客户","data":[],"title":"客户","field":"Client","type":"select"},{"key":"拜访方式","data":[],"title":"拜访方式","field":"Visit_way","type":"select"},{"title":"拜访时间","field":"Visit_time","type":"datetime"},{"title":"创建人员","field":"Creator","type":"like"},{"type":"group"},{"title":"联系人","field":"Client_man","type":"like"},{"title":"联系电话","field":"Client_tel","type":"like"},{"title":"职位","field":"Position","type":"like"},{"title":"拜访次数","field":"Visit_num","type":"range"}],
		columns: [{field:'Creator',title:'创建人员',type:'string',link:true},
                       {field:'CreateDate',title:'创建时间',type:'datetime'},
                       {field:'Client',title:'客户',type:'int',bind:{ key:'审核通过客户',data:[]}},
                       {field:'Client_flag',title:'客户标志',type:'string',bind:{ key:'客户标志',data:[]}},
                       {field:'Client_man',title:'联系人',type:'string'},
                       {field:'Client_tel',title:'联系电话',type:'string'},
                       {field:'Position',title:'职位',type:'string'},
                       {field:'Visit_num',title:'拜访次数',type:'int'},
                       {field:'Visit_way',title:'拜访方式',type:'int',bind:{ key:'拜访方式',data:[]}},
                       {field:'Visit_time',title:'拜访时间',type:'datetime'},
                       {field:'Image',title:'图片',type:'img'},
                       {field:'Visit_content',title:'拜访内容',type:'string'}],
		table: {
			key: 'Client_visit',
			footer: "Foots",
			cnName: '拜访客户',
			name: 'q_client_visit',
			url: "/q_client_visit/",
			sortName: "Visit_time"
		}
	}
}
